package com.mayn.util;

import java.io.File;

/**
 * 文件工具类
 * 
 *
 */
public class FileUtil {

	/** The Unix separator character. */
	@SuppressWarnings("unused")
	private static final char UNIX_SEPARATOR = '/';
	/** The Windows separator character. */
	@SuppressWarnings("unused")
	private static final char WINDOWS_SEPARATOR = '\\';

	/** Class文件扩展名 */
	public static final String CLASS_EXT = ".class";
	/** Jar文件扩展名 */
	public static final String JAR_FILE_EXT = ".jar";
	/** 在Jar中的路径jar的扩展名形式 */
	public static final String JAR_PATH_EXT = ".jar!";
	/** 当Path为文件形式时, path会加入一个表示文件的前缀 */
	public static final String PATH_FILE_PRE = "file:";
	
	
	public static boolean exist(String filePath) {
		File file=new File(filePath);  
		return file.exists();
	}

	

	
	
}
